﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="sendEmailList.aspx.cs" Inherits="EmailMarketingCampaign.sendEmail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        #Button2
        {
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%;">
        <tr>
            <td align="left"><a href="mailList.aspx"><input id="Button1" type="button" value="Back to mail list" /></a><a href="CreateCamp.aspx"><input id="Button3" type="button" value="Add New Campaign" /></a></td>
        </tr>
        <tr>
            <td>
                &nbsp;
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    GridLines="Vertical" HorizontalAlign="Center" AllowPaging="True" 
                    onpageindexchanging="GridView1_PageIndexChanging">
                    <FooterStyle BackColor="#CCCC99" />
                    <RowStyle BackColor="#F7F7DE" />
                    <Columns>
                        <asp:TemplateField HeaderText="" HeaderStyle-Width="50" ItemStyle-HorizontalAlign="Center" HeaderStyle-Height="25" ItemStyle-Height="25" ItemStyle-VerticalAlign="Middle" HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                             <asp:CheckBox ID="chkSelect" runat="server" EnableViewState="true"/>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Height="25px" Width="50px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Height="25px"></ItemStyle>
                        </asp:TemplateField> 
                        
                        <asp:BoundField DataField="CampaignID" HeaderText="Campaign ID" 
                            HeaderStyle-Width="120" ItemStyle-HorizontalAlign="Center" Visible="true">
                            <HeaderStyle Width="120px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        
                        <asp:BoundField DataField="CampaignName" HeaderText="Campaign Name" 
                            HeaderStyle-Width="230" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="230px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>                                               
                        
                        <asp:BoundField DataField="SendAt" HeaderText="Schedule" 
                            HeaderStyle-Width="200" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="200px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        
                        <asp:TemplateField HeaderText="Edit" HeaderStyle-Width="100" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>                              
                                <asp:LinkButton ID="Edit" runat="server">Edit</asp:LinkButton>
                                <asp:LinkButton ID="Delete" runat="server">Delete</asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="text-align:right">
                <a href="editCampaign.aspx">
                <asp:Button ID="save" runat="server" Text="Save" /><input id="back" type="button" value="Back" /></a> <a href="#"><input id="finish" type="button" value="Finish" /></a>
            </td>
        </tr>
    </table>
</asp:Content>
